"""
Author: wenbin
Create: 2024-09-16
"""
from langchain_core.documents import Document


def format_documents(documents: list[Document]) -> str:
    """将文档列表格式化为字符串表达"""
    return "\n".join([document.page_content for document in documents])
